package cn.hp.util;

import lombok.Data;

import java.util.List;

@Data
public class PageBean<T> {
    private int totalPages;//总页数
    private int totalCount;//总条数
    private int page;//当前页数
    private int pageSize;//每页长度
    private List<T> list;//数据集合

    public PageBean(int totalPages, int totalCount, int page, int pageSize, List<T> list) {
        this.totalPages = totalPages;
        this.totalCount = totalCount;
        this.page = page;
        this.pageSize = pageSize;
        this.list = list;
    }

    public PageBean() {
    }
}
